Readability improvement in JS

Hi guys,
I program in JS and Python a lot, and here are some improvements.