Javascript Get Url Hash Python Snake