correct js date creation for firefox