adds parameter ability to javascript functions