fixed javascript error from Android Project missing function