add  grunt support and separate references part.