RFC: Add a Javascript style checker to our APIs

What about using Google's Closure Linter (https://developers.google.com/closure/utilities/) as a JavaScript style checker to our js apis?

On this pull request I add a very simple shell script that calls the closure linter following "our rules".
I have also fixed bluetooth_api.js as an example of what changes by using this checker.