Javascript fixes.