fix for requirejs task
refactored gulp code