Try to load hammer.js from window before loading via require()