separating map js