Load locomote.js as AMD

The Locomote JavaScript library can now be loaded as CommonJS and AMD modules.