Javascript Pipe Through Foundation