Improved syntax error check and the test of it in test/
Appended all jacascript code for html_movie with the filename if a special casename is not given.