Testing if a javascript works