update java script effect mainpage