index and app js

index and app js updated working