fixed javascript references