use anchor for parsing origin url because IE

Fixes an IE specific issue introduced in https://github.com/josh/rails-behaviors/pull/40.