Fixed javascript errors in properties tooltip