changed code to use mm-foundation js instead