use javascript testing routing