Update patatap-looper.js

Use local variables if you introduce them as a parameter