JS backend: increment counter for fresh names
JS inline: fixed bug with simple return inline function, when result is not used.

When function body can be expression
(contains only one statement, and it's return),
 result was saved to resultExpr, not body.

 But when result was not used, resultExpr was not
 used then.

 Fixed by checking, that result is used in first place.