Added scripts to legacy pages