minor fixes, remove gallery js call