Create functions for getting and setting cookie
Fix errors and warnings in console