fixes #40, refactor arguments usage so IE11 isn't confused