write shock and params with js