Broke out JavaScript into separate files.