Javascript Get Url Hash Python Code Generator