Added 'on' method

‘on’ method updates the match media by passing in a callback function.
This is html referring to js files, not javascript.