use jQuery ready event to initialise page