<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.9.1.js'></script>
<script type='text/javascript'>
$(window).load(function(){
HTMLInputElement.prototype.doStuff = function(){
console.log('hey');
}
var fileElement = document.getElementById('file');
fileElement.doStuff();
});
</script>
</head>
<body>
<input type="file" id="file" />
</body>
</html>