Simplified synchronization in JavaScriptJobManagerImpl.waitForJobs methods.

git-svn-id: svn://svn.code.sf.net/p/htmlunit/code/trunk@9664 5f5364db-9458-4db8-a492-e30667be6df6
Improved width calculation if style is set to 'auto'.

git-svn-id: svn://svn.code.sf.net/p/htmlunit/code/trunk@9665 5f5364db-9458-4db8-a492-e30667be6df6