Simple JavaScript router based on location hash changes