The user for the application pool was created when windows had localization setting set to a right to left language, that cause the java script control to change sides.
To remove the setting a had to manually delete the application pool user from c:\users directory and only then to recreate the application pool. (deleting the pool didn't help, user data stayed in c:\users)