Move javascript to external file so we don't get conflicts