format scratchpad.js to my coding style

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>