fixed last remaining js specific code. added license
reference lua runtime