need javascript fixes