Require javascript files when needed.