clean up js and request token