fix profile page javascript