Added flow checker for javascript
Updated formatting as per guidelines
Flow checker: cleanup.