Some almoust working code, jquery removed