small js fixes

same as last commit jsut fixed it more. in a rush atm.