I added a basic fix in FrameRenderer.

About JS indentation space, we could fine tune jshint a bit more. But I'm not sure if jshint is powerful enough to validate custom styles (I saw nothing about curly braces placement, number of spaces between/before parenthesis, etc). Google closure linter (https://code.google.com/p/closure-linter/) is doing it but I'm not sure we want to comply to Google JS styleguide :)