Implement cmdj and use jsfmt