Modify js prototype and add node snippets

I rarely see any js code where the function being added to the prototype is on a new line so I moved it to the same one.

I've also added node snippets that cover very common actions such as requiring modules or exporting from a module. I decided to leave out most callbacks from the snippets because they can be created by tabbing through until the ```handler``` and using the ```f``` snippet to create a new anonymous function. 

It's nitpicking but I've also removed the spaces before the braces in anonymous functions as this seems to be a convention adopted by the js community. See [here](https://github.com/airbnb/javascript#functions) and [here](http://contribute.jquery.org/style-guide/js/).