Fix used javascript function instead of python one = duh