fixing some screwy js