Add js controller