add fix for shit javascript i wrote