fixed javascript issues, updated text