1. fix foundation js bug