manage load js through controllers