Carried js code from index.html