scripts moved to js