Add a random function and quotes. Register as commonjs and amd module
Fix jshint errors