fixed javascript access error