add snippet js page and routing
add snippet page, js and routing