fix modal views by changing $(document).foundation(); to \ $(document).foundation();