general nits for this file:
* it seems like you started using 2-spaces for indentation here instead of 4
* can you put a license header on top of each file?
* can you use double-quotes instead of single quotes for string literals? (`"` vs. `'`)
* it is best practice to  use `"use strict";` for each JS file.