Please to attach params to the function `function(e)` and try to avoid single letter variable names - they don't convey their intent well.