Added new way of handling js dependencies.