added js
Added js entry function