implement showJs function of enemy code