added jquery
main page layout calculations