Comment 7 for bug 1315796

Thanks for comments.

For me it is draf for formatting style and have many mistakes:

1. Why in following lines are semicolons:
        if (photoImage.width > 200) {
        } else {
Does it recommend to use it?
Google link about semicolons:

2. Why function is formatted as:
    function doSomething(x) // javascript functions
and not like
    function doSomething(x) { // javascript functions
Google link:

3. How we should format conditions?
Google link:

4. Should we use space, tabs or both?
Google link:

5. etc.

Here is article about different JavaScript coding style: