Update base-entity.js

Just changed the indenting for github purposes as well as added in comments