Modified getHashParams to work without browser