Courses and course formats

How to include javascript file in a new course format?