Sorry!  Totally didn't mention this to you, but we have a [coding standard](http://redmine.virtualworldframework.com/projects/vwf/wiki/JavaScript_Coding_Standard) that specifies that `js` files should use 4 spaces for indentation (and everywhere we should use spaces, not tabs, but it looks like you're already doing that).  That coding standard is probably worth a read, although it looks like you're doing most of it already.