Add js-insert-block

This really shouldn't require its own function, but whatever.