Word Lookup Script (PHP and Javascript)