Cleaning up JS to use behaviors and fixing urls after rearranging files.