Group page js files together

This is a very simple structural change that will make the js look nicer and be arranged better.