I'm confused by these files. They don't have <html> <head> or <body. tags... are they includes on a third master page file? You may need to use WebAssist Framework builder Plugins to get this to work properly. Some code needs to be on the top of the page above any html and by including it in the middle of another page you can get errors like these. WebAssist Framework Builder Plugins gets around that issue.