JavaScript fixes.