Fix CommonJS for Rails