add commit to js code