Fixed bugs. TODO: jshint custom build.