Separated js into it's own file