Fixed #3. Added slug method
JSDoc comments
Added test file
New lines