Fix js to not fire on post types that are not limited