fixed javascript varname char bug
tweaks