Fix problem in bloomEditing; javascript has no "contains" function.