Fixed Chrome/IE/etc. compatibility

- wrong usage of .trim() prevented pies to show on other Browsers than
Firefox