numerous important changes

added constants, created a functional index, installed jquery and did
some style changes