javascript fixes
javascript fixes