JavaScript console with completion