ionic JavaScript 1