adding js code