ahhh shit js callback MAGIC MAGIC MAGIC