Add semicolons to help with compilation
Only set cookie values if not null
Remove commas between implements (haxe3 syntax change)
Change to help compilation