separate js and add scrollmotion