Rearrange JS files

This commit makes the js folder more structured to how the routes in
rails are for organization.