Could this be in keeping with the JavaScript style guide please?