JS beautifying code