Some quick questions about js