Pure js on kbs