Simplify jn() function