Added the possibility to keep the hash in the address bar

For some cases it is useful to have the hash tags in the address bar. Added the possibility to enable this behavior.