override slugify function using marked.js regex (#40)

The slug generated by string.js does not match the id generated for heading by marked.js.
The string.js slugify function removes all periods - marked.js converts periods to dashes.

This PR overrides the slugify function with a replace method using the regex from marked.js.