Updated javascript with random token on urls to prevent caching