Modified JavaScript