Move JS into separate file.