javascript for setting PHP session variable without reloading the page