removed async from js