changes in js main invocation order and client photo...