adding active support to document load js function