Allow retry for JavaScript one page apps

- Useful for Emberjs apps that use history location