updating gulpfile to handle JS loading better