Add semicolons and change double equals

Added missing semicolons and changed double equals to triple equals when comparing elements with typeof.  The double equals has proven to create interesting and undesired behavior through conversion when comparing elements.  Caveats associated the with double equals:
![35mpy](https://cloud.githubusercontent.com/assets/5547203/3488228/58da6e4e-04d5-11e4-90b2-43e48b58c999.png)