Helper for Winjs