Fixed unclosed tag.
More JS into separate file.