corrected some jshint complaints
reveal modal close hack for Foundation 5