Needed to add in a $(document).ready delay