move javascripts to lib, introduce jshint,
and cleanup some lint issues.
updated bundle