Building placement markers. Minor cleanup in js code.