fix CI build falling, and broken tests

wrong usage of 'this' keyword in some closure break some tests and travis CI, 
I fix that, update version(bower and npm), and uglify.