Remove PHP functions which meant to check cookie existance
Check cookies using JavaScript, closes #2