Small javascript framework