Add parameter to basic javascript as well