update code for changes from ceylon/ceylon-js#323