Added clean command to Makefile
Added javascript functions to deal with blocks (list, update)