split source and added grunt Gruntfile