fixed silly javascript by morons