Fixed bug where jquery plugin was being loaded out of order