javascript pulled into own file