Fix #18 by not relying on location.hash to be consistent between browsers