Updated JS Docs to work with anonymous function and Gulp