fixed prefix to handle urls with slashes in fragment-id

using the regex (/[^\/]*$/, '') on the full href will give bad paths if the url fragment identifier contains slashes

eg,

    "file:///assets/www/index.html#example/fragment-id".replace(/[^\/]*$/, '') == "file:///assets/www/index.html#example/"