facebook modal, minor js fixes