Updated js view