adding first lines of js code