Javascript edit code

Awarded