add timing to JS solutions