Basic JavaScript environment with testing