fix ceylon/ceylon-js#393
convenience function for shorter assert code
roll back #430