js quirk fixed