js code - format