got permalinks working using strings with existing patterns
updating permalinks to use some built in strings functions and cleaning up the file
cleaning up permalinks.js and removing unused packages
Merge pull request #38 from doowb/strings

got permalinks working using strings with existing patterns