No longer throwing exceptions when entity system cant allocate memory, instead returning nullptr
Improving javascript tests