Extracted js into a separate file.