Fixed misc syntax errors

Fixed misc syntax errors like using != instead of !== or forgetting ; or most commonly mixing spaces with tabs, also followed js spec of creating arrays with [] instead.