Extracted JS into separate file.