JE: Use `this` rather than reference Compaa
JE: Extracted javascript into its own file
JE: JS refactoring
JE: 1.8 hash syntax