Broke JavaScript into two files