Update functions.js

Logo animation added.