Fix doc bug; cleanup ternary syntax in loader.js

- Fixes a documentation bug that gave incorrect default paths for `Crafty.load`
- Changed style of ternary operator usage, hopefully improving code clarity
- Driveby change to `tests/core.js` to remove trailing whitespace