More Javascript fixes.