fix js for hash url