Added ES6 JavaScript solution

37 bytes for a single use function.
41 bytes for a multi-use function.
Merge pull request #112 from nderscore/master

Another ES6 JavaScript solution