Cleaned up logging on JS side
Fixed warnings