format javascript true and false as code