Move Scripts to separate JS File