Add custom JavaScript animation layout