Race condition loading jquery and bootstrap