Wicket implementation for JavaScript promises