(WIP) Javascript server callback support