Javasrcipt incomplete