remove trailing commas
fix js style
add template test
implements now shows whole-program implements relation for selected type