Extracted bind context method to js file to be added to minimal lib