funky js side handler