A super simple js model written with promises in mind