Fix java script exceptions in services page.

Fix java script exceptions in services page.