cut up js successfully