JavaScript chemical API