Moved javascript to separate file.