Simple javascript framework