custom js and logging magento