added closing warnings and jquery header