added javascripts to project
only require rails engine if rails is defined
refactored method name add_version => add_alternate
added in a canonical_version