a simple javascript framework