moved javasscript from partial to script file