effective js practice problems