widgets: port to javaScripCore