Changed JS predicates place and changed headers from Functions to Predicates