frontpage javascript in progress