Update modal.js

Temporary fix for #457 (by switching to javascript animations)