Added autocomplete, js mode and removed popwin