initial idea, thus it doesn't work yet

javascript lib is to be added later