Something in the build is broken, but this code is working with grunt serve. Minification of one of the newer pieces is what is causing the error.
Whatever it was, it is now fixed.... Something wacky is going on with the minification process...
Merge pull request #7 from Jedwondle/master

Added the working build of the permanent link feature.