Moved inline Javascript to external