Extracted JS calls to external file. Finalized JS tags.