Added configure method for new way of configuring javascript