Added js option to custom fields