move app js to js