First version of a client-side reactive environment

- also, fixed some bugs in <select> template