Final javascript changes.