JQuery

Change javascript to JQuery, shorter code and better effect