small javascript fixes.