fixed some JS specs