placed javascript at the bottom