A Javascript Model Implementation with Promises based on SpineJS Model