How can i get snapshot number from a javascript in extension?