Fix precedence of javascript field projection rules