the sendMessage of chrome extension is bit tricky, alternative method for passing paramter used