Transform None to JavaScript null