Moved js into separate file. Deleted old redundant js files