Re-adding lost javascript changes