Made script javascript