refactored gruntfile
fixed bug with duplicate js compiling