Moved jquery script to another file as per proper coding practice