fix clashing javascript functions