Foundation is a function of jquery objects now

Fixes bug where `$(document).foundation` was undefined