Moved javascript back to external file