Made it possible to pass an Array of contexts, e.g. ["desktop","mobile"]
Added 'call_for_each_context' parameters that allows one to call callbacks only once for each array of contexts. This is a boolean parameter that defaults to "true" for backwards compatibility
Two new features and some jsDoc comments: