don't redefine var
add missing semicolon
update minified script