added param to java script