initial js code