Update tf.js

Do not initialize if it is already initialized.