Removed cast to js Promise