add post javascript type checking