writing javascript from left to right.