refactor links
add stub for js unit testing