moving js delay to sh