an simple javascript framework