changed the order of scripts to make things work.

chrome was having trouble with some jquery definitions