some small programs written in js