fixing specs and js