Post - javascript variable scope