move app logic into own file, move js files in js subdir