Removed minified version and changed scope of var nv