forgot to wrap it in proper jquery callback