Add js counter