Adapted to work with asset pipeline

Addresses issue #11