Fixing jshint basic warnings in AVM1