Update foundation.tab.js

Remove "/" in tail for url with hash