Update submissions.js

and another simplification for #46