updated JS

main js convert over