action on DIR + set background JS