optimized dependencies; added chai dependency