javascript fixes impr