Template file - cookie js is loaded before polypage js

The current load order is:

I think those two should be reversed, otherwise there is an error that $.polypage is undefined