moved code to src dir
using grunt
fixed jshint errors