fix CI build falling, and broken tests

Last changes broke several tests and CI build.
wrong usage of 'this' keyword, I fixed that, update version(bower and npm), and uglify..