Replacing .bind with $.proxy for IE compatibility