Removed parentesis in $.when for better code styling