Added js/css requiring function