changes in global js for jade handling