Added javascript routing