fixes #3

Fixes an issue where the navigation feature would add an extra slash
after creating or saving a JavaScript link.
reflect changes