Native js instead of prototype, fix reloaded urls