Update serializer.js

explicitly set double