More rules translated for javascript