CRM-15524 - Modify search builder js to work as header script