arranged order for javascript