Adds stack information to the js log entry if possible