amended js