added main javascript for requirejs