removed some global and classical js nonsense