javascript redirect now no longer happens in development mode
refactored Relay into Router