Separated out Javascript to individual file