added functionality of foundations js