Check the project at GitHub - here are examples of embedding Lua into web-page, drawing on canvas etc.