Fixed global search box bootstrap code

This fixes the code for the global search box, whilst it's working at the moment this is actually the way it's supposed to be done.