Ajax level 2 - JS function - variable instance