Fixing broken javascript.