added foundation javascript code