A simple Javascript framework