Fixed JS defines to match backend constants