Move javascript in a separate directory