implement showJs without dialog