Fixed missing creates

- JSLint fixes
- Test fixes