fixed some javascript problems with create and more specs