JavaScript broken out into file and re-added lookup form