split up main part of the tools into seperate file, first step to chrome extension.
switching coffeescript gruntfile to js