fuckin js...debugging stupid issue