Fix error when str is not passed
Uglify JS files
Bump appcache