Sequence and extract js libs from bower packages, correct cosine similarity metric, sequence and detect single api.