Insert buttons with js

fixes #15