minor style updates
add new router js file and test patch