effective javascript corrections.