Avoid top 10 JavaScript errors

  • It says "Bug #1 Bugs with incorrect references to this".

    I always had a bit similar issue with PHP. I always forgot "this" before calling a method or accessing a field.