Not sure if this is your issue, but try
$(document.body).one('pageload',function(){
instead of
$(document).ready(function() {
That way you’ll be able to use your page as a page include if necessary.
Not sure if this is your issue, but try
$(document.body).one('pageload',function(){
instead of
$(document).ready(function() {
That way you’ll be able to use your page as a page include if necessary.