Clean up javascript promise code (#64)
Clean up javascript promise code (#64)

update README: returning the next promise makes the code easier to read
qinwf-nuan/keras-js,qinwf-nuan/keras-js,transcranial/keras-js,transcranial/keras-js,transcranial/keras-js,qinwf-nuan/keras-js