added js log snippet