Ruby looks at the code in line 6, and thinks you're just calling javascript_include_tag without any arguments. It then tries to parse line 7 as a new statement, but doesn't know what to do with a string followed by a comma.
If you put the first argument to javascript_include_tag on the same line (i.e. combine lines 6 and 7), then Ruby will know you're listing arguments to javascrip_include_tag, and it'll work.
If you put the first argument to javascript_include_tag on the same line
(i.e. combine lines 6 and 7), then Ruby will know you're listing
arguments to javascrip_include_tag, and it'll work.