Client loading script in correct order