Added Title
Updated javascript for firefox