Move js to resources dir

I'm not sure it works well :smiling_imp: